/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lolbuilder.Champions.Spells.effects;

import lolbuilder.Champions.Interf.DummyChamp;
import lolbuilder.Champions.Interf.Effect;


/**
 *
 * @author chocoboSan
 */
public class ImpureShots extends Effect{
    
    public ImpureShots() {
        this.effectDuration=3;
        this.onEnnemy=true;
        this.onMe=true;
    }

    @Override 
    public void applyEffect(DummyChamp me,DummyChamp target) {
        super.applyEffect(me,target);
        me.addAttackSpeed(50);
        target.regenhp=target.regenhp/2;
        target.ls=target.ls/2;
        target.sv=target.sv/2;
    }
    
    @Override
    public void removeEffect() {
        super.removeEffect();
        whoAllyIsUnderEffect.as=(float) (whoAllyIsUnderEffect.as-whoAllyIsUnderEffect.as*(1/3.0));
        whoEnnemyIsUnderEffect.regenhp=whoEnnemyIsUnderEffect.regenhp*2;
        whoEnnemyIsUnderEffect.ls=whoEnnemyIsUnderEffect.ls*2;
        whoEnnemyIsUnderEffect.sv=whoEnnemyIsUnderEffect.sv*2;
    }

    
    
}
